package semantic.rules

class CRuleException(message:String) extends Exception(message)

object CRuleException
{
    def WRONG_NODE_TYPE(name:String) = s"Wrong node type: $name."

    def apply(message:String) = throw new CRuleException(message)
}
